﻿@page "/Account/Login"
@layout LoginLayout
@using Microsoft.AspNetCore.Components.Authorization
@inject AuthenticationStateProvider AuthenticationStateProvider
@inject MessageService MessageService
@inject NavigationManager NavigationManager
@using JinShun.OA.UI.Apis
@inject HttpWebClient http



<div class="wrap">
    <div class="container">
        <form method="post" class="form-signin">
            <h2 class="form-signin-heading">登陆</h2>
            <div class="login-wrap">
                <BootstrapInputGroup>
                    <BootstrapInputGroupIcon Icon="fa fa-fw fa-user" />
                    <BootstrapInput TValue="string" name="userName" maxlength="16" IsAutoFocus="true" PlaceHolder="用户名" @bind-Value="username" />
                </BootstrapInputGroup>
                <BootstrapInputGroup class="mt-3">
                    <BootstrapInputGroupIcon Icon="fa fa-fw fa-lock" />
                    <BootstrapPassword name="password" PlaceHolder="密码" @bind-Value="password" />
                </BootstrapInputGroup>
                <BootstrapInputGroup class="mt-3">
                    <img border="0" style="cursor:pointer;max-height:35px;" alt="点击刷新验证码" @onclick="GetCodeImg" src="@imgurl" id="verifyImg" />
                    <BootstrapInput name="code" PlaceHolder="验证码" @bind-Value="code" />
                </BootstrapInputGroup>
                <Button class="btn-login mt-3" ButtonType="ButtonType.Button" Size="Size.Large" IsBlock="true" Color="Color.None" OnClick="DoLogin" Text="登 录">
                </Button>
            </div>
        </form>
    </div>
</div>






